package com.pactera.madp.cp.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@TableName("cp_work_employee_department")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "(通讯录 - 通讯录部门)中间表")
public class WorkEmployeeDepartmentEntity extends BaseEntity<WorkEmployeeDepartmentEntity> {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "通讯录员工id")
    private Integer employeeId;

    @ApiModelProperty(value = "通讯录部门id")
    private Integer departmentId;

    @ApiModelProperty(value = "所在的部门内是否为上级")
    private Integer isLeaderInDept;

    @TableField("`order`")
    @ApiModelProperty(value = "排序")
    private Integer order;

}
